using System;
using System.Collections.Generic;
using System.Data.Services.Common;
using COM.Domain;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;

namespace SampleApp.Domain
{
    public class SysUserRoleMap : EntityTypeConfiguration<SysUserRole>
    {
        public SysUserRoleMap()
        {
            this.ToTable("exp_t_application_userrole");
            this.HasKey(t => t.UserRoleID);
            this.Property(t => t.UserRoleID).HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
            this.Property(t => t.UserRoleID).HasColumnName("userroleid");
            this.Property(t => t.UserCode).HasColumnName("user_code");
            this.Property(t => t.RoleID).HasColumnName("roleid");

        }
    }

}

